package com.cloudlead.commonData.query;

import static com.mysema.query.types.PathMetadataFactory.*;
import com.cloudlead.commonData.entity.EBaseFleetCustomer;


import com.mysema.query.types.path.*;

import com.mysema.query.types.PathMetadata;
import javax.annotation.Generated;
import com.mysema.query.types.Path;

import com.mysema.query.sql.ColumnMetadata;
import java.sql.Types;

import com.mysema.query.sql.*;

import com.cloudlead.common.lang.annotation.Label;


/**
 * QBaseFleetCustomer is a Querydsl query type for EBaseFleetCustomer
 */
@Label("BaseFleetCustomer查询")
@Generated("com.cloudlead.utils.persistence.codegen.serializer.SimpleMetaDataSerializer")
public class QBaseFleetCustomer extends RelationalPathBase<EBaseFleetCustomer> {

    private static final long serialVersionUID = -1125182862;

    public static final QBaseFleetCustomer baseFleetCustomer = new QBaseFleetCustomer("base_fleet_customer");

    public class PrimaryKeys {

        public final PrimaryKey<EBaseFleetCustomer> primary = createPrimaryKey(id);

    }

    public class ForeignKeys {

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseCompany> baseCompanyFk = createForeignKey(baseCompanyId, "id");

        public final ForeignKey<com.cloudlead.commonData.entity.ETbFleetOrder> _customerCodeFk = createInvForeignKey(id, "customerCode");

        public final ForeignKey<com.cloudlead.commonData.entity.EBaseFleetDoor> _fleetCustomerFk = createInvForeignKey(id, "base_fleet_customer_id");

    }

    public final StringPath accountName = createString("accountName");

    public final StringPath accountNumber = createString("accountNumber");

    public final StringPath bank = createString("bank");

    public final StringPath baseCompanyId = createString("baseCompanyId");

    public final NumberPath<Integer> carsCount = createNumber("carsCount", Integer.class);

    public final StringPath city = createString("city");

    public final StringPath comments = createString("comments");

    public final StringPath companyAddress = createString("companyAddress");

    public final StringPath companyContact = createString("companyContact");

    public final StringPath companyFax = createString("companyFax");

    public final StringPath companyName = createString("companyName");

    public final StringPath companyPhone1 = createString("companyPhone1");

    public final StringPath companyPhone2 = createString("companyPhone2");

    public final StringPath companyShortName = createString("companyShortName");

    public final StringPath companyType = createString("companyType");

    public final StringPath email = createString("email");

    public final StringPath flag = createString("flag");

    public final StringPath id = createString("id");

    public final StringPath phone = createString("phone");

    public final StringPath province = createString("province");

    public final StringPath qq = createString("qq");

    public final DateTimePath<org.joda.time.DateTime> registerTime = createDateTime("registerTime", org.joda.time.DateTime.class);

    public final StringPath state = createString("state");

    public final PrimaryKeys pk = new PrimaryKeys();

    public final ForeignKeys fk = new ForeignKeys();

    public QBaseFleetCustomer(String variable) {
        super(EBaseFleetCustomer.class, forVariable(variable), "null", "base_fleet_customer");
        addMetadata();
    }

    public QBaseFleetCustomer(String variable, String schema, String table) {
        super(EBaseFleetCustomer.class, forVariable(variable), schema, table);
        addMetadata();
    }

    public QBaseFleetCustomer(Path<? extends EBaseFleetCustomer> path) {
        super(path.getType(), path.getMetadata(), "null", "base_fleet_customer");
        addMetadata();
    }

    public QBaseFleetCustomer(PathMetadata<?> metadata) {
        super(EBaseFleetCustomer.class, metadata, "null", "base_fleet_customer");
        addMetadata();
    }

    public void addMetadata() {
        addMetadata(accountName, ColumnMetadata.named("accountName").withIndex(10).ofType(Types.VARCHAR).withSize(45));
        addMetadata(accountNumber, ColumnMetadata.named("accountNumber").withIndex(12).ofType(Types.VARCHAR).withSize(45));
        addMetadata(bank, ColumnMetadata.named("bank").withIndex(11).ofType(Types.VARCHAR).withSize(45));
        addMetadata(baseCompanyId, ColumnMetadata.named("base_company_id").withIndex(23).ofType(Types.CHAR).withSize(24));
        addMetadata(carsCount, ColumnMetadata.named("carsCount").withIndex(13).ofType(Types.INTEGER).withSize(10));
        addMetadata(city, ColumnMetadata.named("city").withIndex(22).ofType(Types.VARCHAR).withSize(100));
        addMetadata(comments, ColumnMetadata.named("comments").withIndex(14).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyAddress, ColumnMetadata.named("companyAddress").withIndex(5).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyContact, ColumnMetadata.named("companyContact").withIndex(6).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyFax, ColumnMetadata.named("companyFax").withIndex(9).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyName, ColumnMetadata.named("companyName").withIndex(2).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyPhone1, ColumnMetadata.named("companyPhone1").withIndex(7).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyPhone2, ColumnMetadata.named("companyPhone2").withIndex(8).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyShortName, ColumnMetadata.named("companyShortName").withIndex(3).ofType(Types.VARCHAR).withSize(45));
        addMetadata(companyType, ColumnMetadata.named("companyType").withIndex(4).ofType(Types.VARCHAR).withSize(45));
        addMetadata(email, ColumnMetadata.named("email").withIndex(19).ofType(Types.VARCHAR).withSize(255));
        addMetadata(flag, ColumnMetadata.named("flag").withIndex(15).ofType(Types.VARCHAR).withSize(45));
        addMetadata(id, ColumnMetadata.named("id").withIndex(1).ofType(Types.CHAR).withSize(24).notNull());
        addMetadata(phone, ColumnMetadata.named("phone").withIndex(17).ofType(Types.VARCHAR).withSize(20));
        addMetadata(province, ColumnMetadata.named("province").withIndex(21).ofType(Types.VARCHAR).withSize(100));
        addMetadata(qq, ColumnMetadata.named("qq").withIndex(20).ofType(Types.VARCHAR).withSize(20));
        addMetadata(registerTime, ColumnMetadata.named("registerTime").withIndex(16).ofType(Types.TIMESTAMP).withSize(19));
        addMetadata(state, ColumnMetadata.named("state").withIndex(18).ofType(Types.VARCHAR).withSize(20));
    }

}

